package lu.med.praxiswahl.wahlumed.client.arztbriefe;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import lu.med.praxiswahl.wahlumed.client.briefe.LetterManagementPanel;
import lu.med.praxiswahl.wahlumed.client.wclient.Main;
import lu.med.praxiswahl.wahlumed.client.wclient.PatientenSuchmaske;

@SuppressWarnings("serial")
public class ArztbriefOverPanel extends JPanel {
	private ArztbriefPanel arztbrief, message;
	private LetterManagementPanel managementPanel;

	public ArztbriefOverPanel(Main dataManager, PatientenSuchmaske search) {
		super(new BorderLayout());
		JTabbedPane jtp = new JTabbedPane();
		arztbrief = new ArztbriefPanel(dataManager, search, "");
		message = new ArztbriefPanel(dataManager, search, "_MESSAGE");
		jtp.add("Arztbrief", arztbrief);
		jtp.add("Message", message);
		
		//this.add(jtp, BorderLayout.CENTER);
		
		managementPanel = new LetterManagementPanel(dataManager, search);
		this.add(managementPanel, BorderLayout.CENTER);
		this.add(search, BorderLayout.EAST);
	}

	/**
	 * @return the arztbrief
	 */
	public ArztbriefPanel getArztbrief() {
		return arztbrief;
	}

	/**
	 * @return the message
	 */
	public ArztbriefPanel getMessage() {
		return message;
	}

	/**
	 * @param arztbrief
	 *            the arztbrief to set
	 */
	public void setArztbrief(ArztbriefPanel arztbrief) {
		this.arztbrief = arztbrief;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(ArztbriefPanel message) {
		this.message = message;
	}
}
